NDepend.API Documentation
Sum<T>(IEnumerable<T>,Func<T,Debt>) Method
NDepend.TechnicalDebt Namespace > ExtensionMethodsDebtUsableInCQLinq Class > Sum Method : Sum<T>(IEnumerable<T>,Func<T,Debt>) Method
The generic type of elements of seq
This sequence that contains objects that are projected to Debt values to sum, through the function projecter
The function that projects T objects to Debt values
Sum the values of all Debt values obtained from elements of the sequence seq through the function projecter.
Syntax
[Extension()]
public static Debt Sum<T>( 
   IEnumerable<T> seq,
   Func<T,Debt> projecter
)

Parameters

seq
This sequence that contains objects that are projected to Debt values to sum, through the function projecter
projecter
The function that projects T objects to Debt values

Type Parameters

T
The generic type of elements of seq
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsDebtUsableInCQLinq Class
ExtensionMethodsDebtUsableInCQLinq Members
Overload List